package com.b.sts.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author calwen
 * @since 2023/8/9
 */
@Data
@TableName("log")
public class LogEntity {
    /**
     * 日志ID
     */
    private Integer id;
    private Integer productId;
    private String buyer;
    private String seller;
    /**
     * 类型：release、transaction
     */
    private String type;
    /**
     * 创建时间，默认值为当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdAt;
    @TableField(exist = false)
    private ProductEntity productEntity;

}